<?php 
class Controller_Play extends Controller_Template{
	public $template='template/cloudlecturing';
	public function before()
	{
		parent::before();
		if($this->auto_render)
		{
			$this->template->title='';
			$this->template->content='';
			$this->template->styles=array();
			$this->template->scripts=array();
		}
	}
	public function after()
	{
		
		parent::after();
	}
	public function action_index()
	{

	}

	public function action_playlist()
	{
		$this->template->title="Play list";
		$this->template->content=View::factory('playlist');
	}
	public function action_play($id)
	{
		Request::current()->redirect("player/index/$id");
	}
}
